<!--
 * @Author: wangming
 * @Date: 2021-04-01 14:02:25
 * @LastEditors: wangming
 * @LastEditTime: 2021-06-04 16:10:37
 * @Description: file content
-->
<template>
  <div>
    <!-- <div class="mr10 g6 f14 mb10">选项设置</div>
    <el-form-item label="默认值">
      <el-select
        v-model="defaultValueList"
        placeholder="请选择"
        style="width: 100%"
        :multiple="value.__config.multiple"
      >
        <el-option
          :key="index"
          :value="i.value"
          :label="i.label"
          v-for="(i, index) in options"
        ></el-option>
      </el-select>
    </el-form-item> -->
  </div>
</template>

<script>
import { postHmhttprequestdefinitionExecute } from '@/apis/paas/HmHttpRequestDefinitionController.js'
import basicmixins from '../basicmixins';
export default {
  mixins: [basicmixins],
  data() {
    return {
      defaultValueList: '',
      // options: [],
    };
  },
  watch: {
    'value.modelName': {
      handler: function (val) {
        // console.log(this.value);
      },
    },
    defaultValueList(v) {
      // this.value.defaultValue = v + '';
    },
  },
  mounted() {
    // if (this.value.__config.multiple) {
    //   this.defaultValueList = !!this.value.defaultValue
    //     ? this.value.defaultValue.split(',')
    //     : [];
    // } else {
    //   this.defaultValueList = this.value.defaultValue;
    // }
  },
  methods: {
    // async getOptionList() {
    //   let { data } = await postHmhttprequestdefinitionExecute({});
    //   this.options = data;
    // },
  },
};
</script>

<style lang="scss" scoped></style>
